﻿<UserControl x:Name="ThumbnailsView" x:Class="ImageView.ViewThumbnails"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:common="clr-namespace:ImageUtils.Common;assembly=ImageUtils.Common"
             xmlns:local="clr-namespace:ImageView"
             mc:Ignorable="d" 
             d:DesignHeight="387" d:DesignWidth="784" Background="#FF333333">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition/>
            <RowDefinition Height="25"/>
        </Grid.RowDefinitions>

        <ScrollViewer x:Name="View"  Grid.Row="0" local:KineticBehaviour.HandleKineticScrolling="True">
            <WrapPanel x:Name="ImageView" Background="#FF595959">
                <WrapPanel.LayoutTransform>
                    <ScaleTransform ScaleX="{Binding Value, ElementName=ZoomSlider}" ScaleY="{Binding Value, ElementName=ZoomSlider}"/>
                </WrapPanel.LayoutTransform>
            </WrapPanel>

        </ScrollViewer>

        <StackPanel Panel.ZIndex="55" Grid.Row="1" Background="#FF333333" Orientation="Horizontal" VerticalAlignment="Center" Margin="0,0,16,0">
            <TextBlock Text="Zoom:" Foreground="White" Width="40"/>
            <common:EditableSlider x:Name="ZoomSlider" Maximum="1" Width="200" Value="1" Minimum="0.5"/>
            <TextBlock Text="Files:" Foreground="White" Width="40" Margin="10,0,0,0"/>
            <TextBlock x:Name="ImageCount" Foreground="White" Width="30" Text="0"/>
            <ProgressBar x:Name="LoadProgress" Width="200" IsIndeterminate="False" />
            
        </StackPanel>

    </Grid>
</UserControl>
